import { applyDecorators, SetMetadata, Get, UseGuards } from '@nestjs/common';
import { Aaa } from './aaa.decorator';
import { LoginGuard } from './login.guard';

export const My = (path: string, roles: string) =>
  applyDecorators(Get(path), Aaa(roles), UseGuards(LoginGuard));
